package com.zx.idc.backend.gui.ins;


import com.baomidou.mybatisplus.plugins.Page;
import com.zx.idc.backend.gui.common.BaseApi;
import com.zx.idc.backend.gui.common.Result;
import com.zx.idc.ds.ins.service.IInsAccesslogQueryService;
import com.zx.idc.ds.ins.vo.InsAccesslogQueryVo;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 访问日志查询指令

注：endTime 不填写时，endTime 默认为 startTime 加 前端控制器
 * </p>
 *
 * @author rxliuli
 * @since 2019-01-31
 */
@RestController
@RequestMapping("/api/insAccesslogQuery")
public class InsAccesslogQueryController extends BaseApi {

    @Autowired
    private IInsAccesslogQueryService iInsAccesslogQueryService;

    @GetMapping("/query-page")
    @RequiresPermissions("regulatory-directive:ins-accesslog-query")
    public Result<Page<InsAccesslogQueryVo>> queryPage(Page<InsAccesslogQueryVo> page, InsAccesslogQueryVo insAccesslogQueryVo) {
        return success(iInsAccesslogQueryService.queryPage(page, insAccesslogQueryVo));
    }
}

